<?php
   require_once('nusoap/nusoap.php');
   require_once('usuarios.php');

   $server = new nusoap_server();
   //AlumnoTable
   $server->register('alumnotable_fetchAll');
   $server->register('getAlumno');
   $server->register('getlastAlumno');
   $server->register('deleteAlumno');
   $server->register('insertAlumno');
   $server->register('updateAlumno');
   $server->register('alumnotable_getMissingIDs');
   //ProfesorTable
   $server->register('profesortable_fetchAll');
   $server->register('getProfesor');
   $server->register('getlastProfesor');
   $server->register('deleteProfesor');
   $server->register('insertProfesor');
   $server->register('updateProfesor');
   $server->register('profesortable_getMissingIDs');
   //FuncionarioTable
   $server->register('funcionariotable_fetchAll');
   $server->register('getFuncionario');
   $server->register('getlastFuncionario');
   $server->register('deleteFuncionario');
   $server->register('insertFuncionario');
   $server->register('updateFuncionario');
   $server->register('funcionariotable_getMissingIDs');
   //UsuarioTable
   $server->register('usuariotable_fetchAll');
   $server->register('getUsuario');
   $server->register('getUsuarioByUserName');
   $server->register('searchUsersByName');
   $server->register('insertUsuario');
   $server->register('updateUsuario');
   $server->register('deleteUsuario');


   $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
   $server->service($HTTP_RAW_POST_DATA);
?>
